/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: url('./src/homepage.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    color: #fff;
}

/* 页眉样式 */
header {
    display: flex;
    /* justify-content: space-between; */
    justify-content: flex-start;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(255, 255, 200, 0);
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 18px;
    font-weight: bold;
    color: #febf66;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-start;
    align-items: center;
    margin-left: 20px;

}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #54251e;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #febf66;
    font-weight: bold;
}

.user-actions {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    margin-left: auto;
}


.profile-btn {
    display: flex;
    align-items: center;
    margin-right: 20px;
    text-decoration: none;
    color: #eb9b3e;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.profile-btn img    {
 width: 20px;
    height: 20px;
    margin-right: 5px;
}

.login-btn {
    background-color: #eb9b3e;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

.login-btn:hover {
    background-color: #FF7F00;
}

/* 主内容样式 */
main {
    height: calc(100vh - 90px);
    display: flex;
    flex-direction: column; /* 使内容垂直排列 */
    justify-content: center;
    position: relative;
    width: 70%;
    /* margin-left: 50px; 将内容向左移动50px */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)); /* 从上到下渐变消失 */
    /* backdrop-filter: blur(15px); 添加模糊效果 */
}


.hero-content {
    position: relative;
    margin-left: 50px;
    text-align: center;
    width: 66%;
    z-index: 5;
}

.hero-content h1 {
    font-size: 100px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #febf66;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Siyuan', HY Dai Hei Jian;
}

.hero-content h2 {
    font-size: 50px;
    font-weight: 300;
    margin-bottom: 40px;
    color: #FFCC66;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-family: 'ZCOOL XiaoWei', serif;
}

.start-btn {
    background-color: #febf66;
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn:hover {
    background-color: rgba(255, 200, 120, 0.8);
    transform: scale(1.05);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #333;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.info-container {
    margin-top: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
}

.info-label {
    width: 100px;
    font-weight: bold;
}

.info-value {
    flex: 1;
}

.verify-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.verify-btn:hover {
    background-color: #45a049;
}


/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column       ;
 padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        margin: 15px 0;
    }
    
    .user-actions {
        margin-top: 15px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
}